package com.cet.qz.unit01.chapter1_2.visitor;

/**
 * @program: algorithm
 * @description:
 * @author: 陈恩涛
 * @create: 2021-01-13 15:16
 **/
public class ComputerPartDisplayVisitor implements ComputerPartVisitor {

    @Override
    public void visit(Keyboard keyboard) {
        System.out.println("Display Keyboard.");
    }

    @Override
    public void visit(Monitor monitor) {
        System.out.println("Display Monitor.");
    }

    @Override
    public void visit(Mouse mouse) {
        System.out.println("Display Mouse.");
    }

    @Override
    public void visit(Computer computer) {
        System.out.println("Display Computer.");
    }
}
